
public class QuestionViewFactory
{
	public static IView createQuestionView(Question q, QuizController ctrl)
	{
		if(q instanceof MultipleChoiceQuestion)
		{
			return new MultipleChoiceQuestionView((MultipleChoiceQuestion)q, ctrl);
		}
		else if(q instanceof TimeQuestion)
		{
			return new TimeQuestionView((TimeQuestion)q, ctrl);
		}
		else
		{
			return null;
		}
	}
}
